package com.fzk.blog.settings.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fzk.blog.bean.Role;
import com.fzk.blog.bean.vo.RoleInfo;

import java.util.List;

/**
 * @author fzk
 * @date 2021-08-18 0:52
 */
public interface IRoleService {
    RoleInfo getRoleInfoById(int id) throws JsonProcessingException;

    List<RoleInfo> getRoleInfoList() throws JsonProcessingException;

    RoleInfo insertRole(Role role, int loginId);

    RoleInfo updateRole(Role role, int loginId) throws JsonProcessingException;

    RoleInfo deleteRole(int roleId, int loginId);
}
